import React from "react";
import style from "./style.module.scss";
import { dateYearToDate } from "../../utils/formatTime";

// 用户通知列表类型
interface noticeListRawState {
  id: number,
  content: string,
  createTime: number
}

// 用户H币通知
export const MyHealthyCurrencyNotice: React.FC<noticeListRawState> = ({
  id,
  content,
  createTime
}) => {
  return (
    <div className={style.leftDate_box} key={id}>
      <div className={style.text}>{content}</div>
      <div className={style.date_box}>
        <div className={style.date}>
          <div className={style.onDate}>
            {createTime && dateYearToDate(createTime).yearToDate}
          </div>
          <div className={style.toDate}>
            {createTime && dateYearToDate(createTime).time}
          </div>
        </div>
        <div className={style.check}></div>
      </div>
    </div>
  );
};
